import { fromJS } from 'immutable';
import { ADD_NUMBER2 } from './constants';


const defaultState = fromJS({
  number: 10,
});

export default (state = defaultState, action) => {
  switch (action.type) {
    case ADD_NUMBER2:
      return state.set('number', 5);
    default:
      return state;
  }
};
